﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 缓存口
    /// </summary>
    [Microsoft.EntityFrameworkCore.Index(nameof(Code), IsUnique = true)]
    public partial class TCachePort
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 区域类型：1-入库区;2-出库区;3-异常区
        /// </summary>
        public int AreaType { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int DisplayOrder { get; set; }
        /// <summary>
        /// 作业模式：1-全入；2-全出模式；3-左出右入；4-左入右出。
        /// </summary>
        public int? WorkMode { get; set; }
        /// <summary>
        /// 是否有货
        /// </summary>
        public bool IsUsed { get; set; }
        /// <summary>
        /// 状态：0-禁用；1-启用；
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreateUserId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }
        /// <summary>
        /// 修改人Id
        /// </summary>
        public int? ModifyUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string ModifyUserName { get; set; }
        /// <summary>
        /// 当前缓存口占用垛信息
        /// </summary>
        public int? StackingStorageId { get; set; }
    }
}
